package com.lijiajian;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.lijiajian.dao")
@EnableScheduling
public class CrmApp extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(CrmApp.class,args);
    }
    //由外部tomcat运行
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CrmApp.class);
    }
}
